demo: expand notebook tabs
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Tue, 3 Dec 2013 01:02:56 +0000 (20:02 -0500)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Tue, 3 Dec 2013 15:50:07 +0000 (10:50 -0500)
demos/gtk-demo/main.c
demos/gtk-demo/main.ui

index b86344343c483ee96a357061b1ba7e1f798470e6..2449b12374f43e631628bf882d0b9a447dab8cec 100644 (file)
@@ -510,6 +510,10 @@ add_data_tab (const gchar *demoname)
       label = gtk_label_new (resources[i]);
       gtk_widget_show (label);
       gtk_notebook_append_page (GTK_NOTEBOOK (notebook), widget, label);
+      gtk_container_child_set (GTK_CONTAINER (notebook),
+                               GTK_WIDGET (widget),
+                               "tab-expand", TRUE,
+                               NULL);
 
       g_free (content_mime);
       g_free (content_type);
index fed6caec9aab6cd1311d00fade5e99f03524b6f8..060ff4bde6438de76d61ac93a54e4ee3a0dba814 100644 (file)
                   </object>
                 </child>
               </object>
+              <packing>
+                <property name="tab_expand">True</property>
+              </packing>
             </child>
             <child type="tab">
               <object class="GtkLabel" id="label1">
                 <property name="use_underline">True</property>
               </object>
               <packing>
+                <property name="tab_expand">True</property>
                 <property name="tab_fill">False</property>
               </packing>
             </child>
               </object>
               <packing>
                 <property name="position">1</property>
+                <property name="tab_expand">True</property>
               </packing>
             </child>
             <child type="tab">